wayland: Throttle system bell requests
authorJonas Ådahl <jadahl@gmail.com>
Mon, 13 Mar 2017 06:42:38 +0000 (14:42 +0800)
committerJonas Ådahl <jadahl@gmail.com>
Thu, 20 Jul 2017 01:58:10 +0000 (09:58 +0800)
commitf6dd1f6ceb12baa6aef8c8585e959eec75a4cd7d
tree22681ec97f5a3a3aafeb68b9f44798c445b0a3ee
parent96295ad8c58c1d1a1322e3c95ed92c87927aef42
wayland: Throttle system bell requests

If a bad behaving application tries to make the window/display beep too
often, throttle the beep requests so that we don't end up filling the
Wayland socket queue.

The throttle is set to 50 beeps per second, which far more beeps than
will ever make any sense from a user experience point of view, but will
avoid terminating due to an excessive amount of requests.

https://bugzilla.gnome.org/show_bug.cgi?id=778188
gdk/wayland/gdkdisplay-wayland.c
gdk/wayland/gdkdisplay-wayland.h